package org.mx.dal.entity;

import org.mx.dal.annotation.ElasticField;

import co.elastic.clients.elasticsearch._types.mapping.Property.Kind;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 描述： 基于Elastic实现的基础字典实体
 *
 * @author John.Peng
 *         Date time 2018/4/1 上午8:45
 */
@ToString(callSuper = true)
@Getter
@Setter
public class ElasticBaseDictEntity extends ElasticBaseEntity implements BaseDict {
    /**
	 * 
	 */
	private static final long serialVersionUID = -4909346030624726367L;
	@ElasticField
    private String code; // 代码
    @ElasticField
    private  String name; // 名称
    @ElasticField(type = Kind.Text, analyzer = "ik_max_word")
    private  String desc; // 描述
}
